ProfilePress\Core\Membership\Models\Subscription\SubscriptionEntity C

Total Complexity 121
Dependencies 16
Dependents 10
Total lines 828
Lines of code 400
Logical lines of code 210
Comment lines 178
Methods 54
Properties 18

Methods 54

Method Rating Maintainability Complexity Lines of code
renew()
A
44 10 44
is_active()
A
54 8 20
expire()
A
56 8 16
is_expired()
S
53 7 21
__construct()
S
60 7 12
cancel()
S
58 6 15
maybe_complete_subscription()
S
67 4 8
activate_subscription()
S
60 3 13
enable_subscription_trial()
S
60 3 13
update_meta()
S
56 2 19
complete()
S
68 3 7
get_renewal_expiration_date_label()
S
72 3 5
is_lifetime()
S
74 3 4
get_subscription_terms()
S
61 2 13
update_status()
S
62 2 11
remove_plan_role_from_customer()
S
64 2 9
can_cancel()
S
75 2 4
add_plan_role_to_customer()
S
64 2 9
get_last_order()
S
63 2 10
save()
S
64 2 10
get_initial_tax()
S
79 2 3
get_initial_tax_rate()
S
79 2 3
get_recurring_tax()
S
79 2 3
get_recurring_tax_rate()
S
79 2 3
has_trial()
S
79 2 3
get_formatted_expiration_date()
S
68 2 7
update_profile_id()
S
79 1 3
get_times_billed()
S
67 1 8
get_plan()
S
80 1 3
is_recurring()
S
80 1 3
is_completed()
S
80 1 3
is_pending()
S
80 1 3
add_renewal_order()
S
68 1 8
get_meta_flag_id()
S
79 1 3
get_id()
S
80 1 3
get_meta()
S
65 1 10
is_cancelled()
S
80 1 3
get_all_orders()
S
71 1 6
get_parent_order_id()
S
80 1 3
get_plan_id()
S
80 1 3
add_note()
S
71 1 5
get_notes()
S
78 1 3
get_payment_method()
S
80 1 3
exists()
S
80 1 3
get_status_label()
S
80 1 3
get_status()
S
78 1 3
get_profile_id()
S
78 1 3
get_completed_order_count()
S
71 1 6
get_total_payments()
S
80 1 3
get_recurring_amount()
S
81 1 3
get_initial_amount()
S
81 1 3
get_customer()
S
80 1 3
get_customer_id()
S
80 1 3
delete_meta()
S
65 1 9